package com.test.deencredit.analytics_deencredit.data_sdk_deencredit.services_deencredit;

import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;

import androidx.core.content.ContextCompat;

import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.beans_deencredit.ASDecBn_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASGeneralUtil_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASHarewareUtil_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASNetworkUtil_deencredit;
import com.test.deencredit.analytics_deencredit.data_sdk_deencredit.util_deencredit.ASStoreUtil_deencredit;

public class ASDecIfo_deencredit {

    public static ASDecBn_deencredit getDatas_deencredit(Context paramContext) {
        ASDecBn_deencredit bean = new ASDecBn_deencredit();
        if (PackageManager.PERMISSION_GRANTED == ContextCompat.checkSelfPermission(paramContext, Manifest.permission.READ_PHONE_STATE)) {
            try {
                bean.setMac_deencredit(ASNetworkUtil_deencredit.getMacAddress_deencredit(paramContext));
                bean.setImei_deencredit(ASGeneralUtil_deencredit.getImei_deencredit(paramContext));
                bean.setLaguage_deencredit(ASGeneralUtil_deencredit.getLanguage_deencredit(paramContext));
                bean.setArea_deencredit(ASGeneralUtil_deencredit.getArea_deencredit(paramContext));
                bean.setScreenHeight_deencredit(ASGeneralUtil_deencredit.getDeviceHeight_deencredit(paramContext));
                bean.setScreenWidth_deencredit(ASGeneralUtil_deencredit.getDeviceWidth_deencredit(paramContext));
                bean.setNetworkData_deencredit(ASGeneralUtil_deencredit.getSimOperatorName_deencredit(paramContext));
                bean.setFrontCameraPixels_deencredit(ASHarewareUtil_deencredit.getFrontCameraPixels_deencredit(paramContext));
                bean.setRearCameraPixels_deencredit(ASHarewareUtil_deencredit.getBackCameraPixels_deencredit(paramContext));
                bean.setRa_deencredit(ASStoreUtil_deencredit.getRamTotal_deencredit(paramContext));
                bean.setRo_deencredit(ASStoreUtil_deencredit.getCashTotal_deencredit(paramContext));
                bean.setIp_deencredit(ASNetworkUtil_deencredit.getIPAddress_deencredit(paramContext));
                bean.setIp2_deencredit(ASNetworkUtil_deencredit.getIPAddress_deencredit(paramContext));
                bean.setNetworkEnvironment_deencredit(ASGeneralUtil_deencredit.getNetworkType_deencredit(paramContext));
                bean.setCu_deencredit(ASGeneralUtil_deencredit.getCpuModel_deencredit(paramContext));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return bean;
    }

}
